package com.usian.admin.controller;

import com.usian.admin.AdSensitiveControllerApi;
import com.usian.admin.service.AdSensitiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/v1/sensitive")
public class AdSensitiveController implements AdSensitiveControllerApi {

    @Autowired
    private AdSensitiveService adSensitiveService;

    /**
     * 查询所有敏感词列表 审核使用
     *
     * @return
     */
    @PostMapping("/list")
    @Override
    public List<String> findAllSensitive() {
        return adSensitiveService.findAllSensitive();
    }
}
